<?php
/**
 * Created by JetBrains PhpStorm.
 * User: shaoshuai
 * Date: 12-7-14
 * Time: 下午6:03
 * To change this template use File | Settings | File Templates.
 */
class Functions
{
    public static function log($var)
    {
        $string = print_r($var, true);
        file_put_contents('log.txt', $string . "\n");
    }
}